<%@ page import="com.zhangmengyuan.medical.entity.User" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.neusoft.com/taglib/cutpage" prefix="page"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/back.css" />
<%List<User> userlist = (List<User>)request.getAttribute("userlist"); %>
<center><h3 style="color: #0066CC">系统管理员用户</h3>
<div class="div_check">
	<form action="${pageContext.request.contextPath}/UserServlet?service=check_sysUser" method="post">
		<input type="text" name="userName">
		<input type="submit" value="模糊查询">
	</form>
</div>
<table width="1000px" border="1" cellspacing="0" bordercolordark="#FFFFFF" bordercolorlight="#0066cc" style="font-size: 12">
	<thead>
		<tr bgcolor="#AEC8E4" height="40px">
			<th width="40px">序号</th>
			<th width="80px">用户编号</th>
			<th width="150px">用户姓名</th>
			<th width="150px">用户密码</th>
			<th width="100px">用户权限</th>
			<th width="150px">用户手机</th>
			<th width="80px">用户性别</th>
			<th width="80px">用户状态</th>
			<th width="100px">操作</th>
			<th></th>
		</tr>
	</thead>
	<tbody align="center" class="table_font">
			<%if(userlist!=null){
				int size=userlist.size();
				for(int i=0;i<size;i++){
					User u = userlist.get(i);
					%>
					<tr height="30px;">
						<td><%=i+1%></td>
						<td><%=u.getUserId() %></td>
						<td><%=u.getUserName() %></td>
						<td><%=u.getPassWord() %></td>
						<td><%=u.getPower()==1?"普通管理员":"超级管理员"%></td>
						<td><%=u.getPhone() %></td>
						<td><%=u.getSex() %></td>
						<td><%=u.getState()==0?"正常":"冻结" %></td>
						<td><a href="${pageContext.request.contextPath}/UserServlet?service=man_modify_to&userName=<%=u.getUserName() %>">修改</a>
							<a href="${pageContext.request.contextPath}/UserServlet?service=deleteUser&userName=<%=u.getUserName() %>">删除</a>
					</tr>
					<% 
						
					}
				} %>
	</tbody>
</table>
<div align="center" style="margin-top: 40px;font-size: 10pt">
	<page:pageDisplay pagenum="${pagenum}" url="${pageContext.request.contextPath}/UserinfoServlet?service=checkSysUser" condName="pagenum" maxindex="${usercount}"/>
	<div align="right" style="font-size: 10pt">
		<span>总共记录数：${usercount}</span>
	</div>
</div>
</center>